#pragma once

#include "NFServerComm/NFServerCommon/NFIDescStore.h"
#include "NFServerComm/NFServerCommon/NFIDescTemplate.h"
#include "NFLogicCommon/NFDescStoreMacrosDefine.h"
#include "NFLogicCommon/NFDescStoreTypeDefines.h"
#include "E_CommonCounter.nanopb.h"
#ifndef MAX_COMMONCOUNTER_COMMONCOUNTER_NUM
#define MAX_COMMONCOUNTER_COMMONCOUNTER_NUM 20
#endif

class CommonCounterDesc : public NFI_DESC_TEMPLATE_MACRO(CommonCounterDesc, E_CommonCounter, EOT_CONST_COMMONCOUNTER_COMMONCOUNTER_DESC_ID, MAX_COMMONCOUNTER_COMMONCOUNTER_NUM)
public:
	CommonCounterDesc();
	virtual ~CommonCounterDesc();
	int CreateInit();
	int ResumeInit();
public:
	int Load(NFResDb *pDB) override;
	int LoadDB(NFResDb *pDB) override;
	int CheckWhenAllDataLoaded() override;
};
